import {
	getTabbarHeight
} from '@/plugins/utils';
let baseUrl = "";
if (process.env.NODE_ENV === 'development') {
	// 开发环境
	// baseUrl = 'https://lgapi.qinkonglan.cn/'
	baseUrl = 'http://192.168.0.110:8081'
} else if (process.env.NODE_ENV === 'production') {
	// 生产环境
	baseUrl = 'https://lgapi.qinkonglan.cn/'
} 
let shareUrl = "https://lgs.qinkonglan.cn"; //打开小程序网址
let systemInfo = {
	...getTabbarHeight(),
	// #ifdef MP-ALIPAY
	navBarH: uni.getSystemInfoSync().statusBarHeight + uni.getSystemInfoSync().titleBarHeight, //菜单栏总高度--单位px
	titleBarHeight: uni.getSystemInfoSync().titleBarHeight, //标题栏高度--单位px
	// #endif
	// #ifndef MP-ALIPAY
	navBarH: uni.getSystemInfoSync().statusBarHeight + 44, //菜单栏总高度--单位px
	titleBarHeight: 44, //标题栏高度--单位px
	// #endif
};
// 平台
// #ifdef MP-WEIXIN
systemInfo.platform = 'weixin'
// #endif
// #ifdef MP-ALIPAY
systemInfo.platform = 'alipay'
// #endif
// #ifdef MP-TOUTIAO
systemInfo.platform = 'toutiao'
// #endif
// #ifdef APP-PLUS
systemInfo.platform = 'plus'
// #endif
console.log(systemInfo, 'systemInfo')
const courtConfig = {
	publicAppId: '', //公众号appId
	baseUrl: baseUrl, //域名
	shareUrl: shareUrl,
	systemInfo: systemInfo, //系统信息
	mapData: {
		key: 'BVSBZ-6FCCU-ZTIV2-4SQZB-OWWJS-xxxxxx', //腾讯地图key:  
		sk: 'fXlEQP42ywsPd7rQ6J4ph86vRKdAPcy5',
	},
	share: {
		title: '零工招聘', //分享标题
		desc: "零工招聘应用", //分享详情
		link: "", // 分享链接
		imgUrl: "", // 分享图
	}
};
export default Object.assign({}, courtConfig);